# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-julia
pkgver=0.19.0_git20220531
_gitrev=fc60b7cce87da7a1b7f8cb0f9371c3dc8b684500
pkgrel=0
pkgdesc="Julia grammar for tree-sitter"
url="https://github.com/tree-sitter/tree-sitter-julia"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/tree-sitter/tree-sitter-julia/archive/$_gitrev/tree-sitter-julia-$_gitrev.tar.gz"
builddir="$srcdir/$pkgname-$_gitrev"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
dab68162e103001ecaf84ebaa121249f001517097ff2355dadc173ffac96055e28609dada6ec12c7ebfd9bd2c8b1625596eed912a7b2a35978803d8b234ad44b  tree-sitter-julia-fc60b7cce87da7a1b7f8cb0f9371c3dc8b684500.tar.gz
"
